const svgIcon = `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="48" height="48" fill="none" stroke="currentColor">
  <!-- 云朵主体 -->
  <path d="M17 12H7a5 5 0 1 1 4.08-8" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
  
  <!-- 上传箭头 -->
  <path d="M12 16V8m0 0l-3 3m3-3l3 3" stroke-width="1.8" stroke-linecap="round"/>
  
  <!-- 底部横线（可选） -->
  <path d="M4 20h16" stroke-width="1.2" opacity="0.8"/>
</svg>`;

export const toolbarConfig = ({ uploadImgClick = () => {} }) => [
  "emoji",
  "headings",
  "bold",
  "italic",
  "strike",
  "|",
  "line",
  "quote",
  "list",
  "ordered-list",
  "check",
  "outdent",
  "indent",
  "code",
  "inline-code",
  "insert-after",
  "insert-before",
  "undo",
  "redo",
  //先不做图片相关，等备案号下来以及七牛云开通完成后再搞
  // {
  //   name: "upload-img",
  //   tip: "上传图片",
  //   icon: svgIcon,
  //   tipPosition: "n",
  //   click: uploadImgClick,
  // },
  "link",
  "table",
  "record",
  "edit-mode",
  "both",
  "preview",
  "fullscreen",
  "outline",
  "code-theme",
  "content-theme",
  "export",
  "devtools",
  "info",
  "help",
  "break",
];
